package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.WaferEntity;
import com.glory.brepda.entity.WithdrawalEntity;

import java.util.List;

public class WithdrawalAdapter extends BaseQuickAdapter<WithdrawalEntity.XLot, BaseViewHolder> {

    public WithdrawalAdapter(@Nullable List<WithdrawalEntity.XLot> data) {
        super(R.layout.item_withdrawal_list);
    }

    @Override
    protected void convert(BaseViewHolder helper, WithdrawalEntity.XLot item) {

        helper.setText(R.id.tvPosition,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.tvMaterialName,item.getMATERIALNAME());
        helper.setText(R.id.tvMLotID,item.getMLOTID());
        helper.setText(R.id.tvPartnerLotID,item.getPARTNERLOTID());
        helper.setText(R.id.tvMainQTY,item.getMAINQTY());
    }
}
